package com.example.myservice_provider.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.myservice_provider.entity.Comment;
import com.example.myservice_provider.entity.Post;

import java.util.List;

public interface PostService {

    //文章模块
    public Page<Post> getAllPosts(Integer page,String classification,Integer posterId) throws Exception;
    public Post getOnePost(Integer postId) throws  Exception;
    public int starPost(Integer postId) throws  Exception;
    public int updatePost(Post post) throws  Exception;
    public int addPost(Post post) throws  Exception;
    //评论模块
    public int addCommon(Comment comment) throws  Exception;
    public Page<Comment> getCommon(Integer page,Integer postID) throws  Exception;
    public int starCommon(Integer commentID) throws  Exception;

}
